﻿<%@ Control Language="C#" EnableViewState="true" %>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>
<script type="text/javascript">
    function showtr() {
        var t1=document.getElementById('showbpic');
        var t2=document.getElementById('<%=classDropDownList.ClientID %>');
        var tt=t2.options[t2.selectedIndex].innerHTML;
        if(tt=="父菜单"){t1.style.display = "none";}else{t1.style.display = "block";}
    }
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %>images/menuthb.png);
        margin-top: 1px">
        <tr>
                <td valign="middle" height="30">
                    <font style="font-size: 14px; font-weight: bold; color: #3E7CC3; float: left; color: black">
                        &nbsp;编辑菜单 </font>
                </td>
            </tr>
        </table>

<table class="window_tab_list" cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
        <tr>
            <td height="30" style="text-align: left">
                <img src="<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %>images/arrowright.gif" align="absmiddle" />
                &nbsp;
                <a href="Menu.aspx">菜单列表</a>
            </td>
        </tr>
    </table>
    <table class="window_tab_list" cellpadding="0" cellspacing="0" border="0" width="100%" align="center"
        style="margin-top: 3px;">
        <tr>
            <th colspan="2">
                编辑菜单</th>
        </tr>
        <tr>
            <td width="150px" style="text-align: right; padding-right: 3px">
                菜单名称：</td>
            <td>
                <asp:TextBox ID="danname" runat="server" Style="width: 200px; padding-left: 3px;
                    float: left"></asp:TextBox></td>
        </tr>
        <tr id="showbpic">
            <td style="text-align: right; padding-right: 3px">
                菜单背景图：</td>
            <td>
                <asp:TextBox ID="danpic" runat="server" Style="width: 300px;float: left;padding-left: 3px;"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="text-align: right; padding-right: 3px">
                菜单链接：</td>
            <td>
                <asp:TextBox ID="danlink" runat="server" Style="width: 300px;float: left;padding-left: 3px;"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="text-align: right; padding-right: 3px">
                菜单新链接：</td>
            <td>
                <asp:TextBox ID="newurl" runat="server" Style="width: 300px;float: left;padding-left: 3px;"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="text-align: right; padding-right: 3px">
                菜单提示：</td>
            <td>
                <asp:TextBox ID="danmiaoshu" runat="server" Style="width: 300px;float: left;padding-left: 3px;"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="text-align: right; padding-right: 3px">
                菜单大类：</td>
            <td>
                <asp:DropDownList ID="classDropDownList"  Style="float: left;padding-left: 3px;" runat="server" onchange="showtr()">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td style="text-align: center;" colspan="2">
                <asp:Button ID="savebtn" runat="server" Text="保 存" />
            </td>
        </tr>
    </table>
    <div style="display:none;">
        <asp:TextBox ID="txtID" runat="server"></asp:TextBox>
        <asp:TextBox ID="txtORDER_ID" runat="server"></asp:TextBox>
    </div>